package com.riche.contractbackend.model.request;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName: TeamAddRequest
 * @Description: 创建队伍请求参数
 * @Author: Gaoruiqi
 * @Date: 2025-09-10 22:04
 * @Version: 1.0
 **/
@Data
public class TeamAddRequest implements Serializable {

    /**
     * 队伍名称
     */
    private String name;

    /**
     * 描述
     */
    private String description;

    /**
     * 最大人数
     */
    private Integer maxNum;

    /**
     * 过期时间，自动收回队伍
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date expireTime;

    /**
     * 状态：0-公开 1-私有 2-加密
     */
    private Integer status;

    /**
     * 加入队伍密码，状态为加密时必填
     */
    private String password;

    /**
     * 队伍创建人Id，关联user表的id
     */
    private Long userId;

    private static final long serialVersionUID = -8927523092273548011L;

}
